#include "Thread.h"
#include <iostream>
using namespace std;

void Thread::join() {
	pthread_join(this->thread, NULL);
}

void Thread::start() {
	cout<<"ENTRO POR ACAAAAAAAA ES EL STARTTTTT"<<endl;
	pthread_create(&this->thread, NULL, starter, this);
}


void *Thread::starter(void *data) {
	Thread *t = (Thread*) data;
	cout<<"ENTRO POR ACAAAAAAAA ES EL STARTTTTTEEEEEEER"<<endl;
	t->run();
	return NULL;
}

